﻿using System;
using System.Collections.Generic;
using System.Transactions;
using Bingosoft.Data;
using HHMMS.Core.Model;

namespace HHMMS.Core.Service
{
	/// <summary>
	///表示对表DistributePlanDetailService的所有操作的实现。
	/// </summary>
    public class DistributePlanDetailService
    {
		private readonly Dao dao = Dao.Get();

        private DistributePlanDetailService()
		{}

        private static DistributePlanDetailService instance = null;
		/// <summary>
		/// MaterialDirectory服务类的单例。
		/// </summary>
        public static DistributePlanDetailService Instance
        {
            get
            {
                if (instance == null)
                {
                    lock (typeof(DistributePlanDetailService))
                    {
                        instance = new DistributePlanDetailService();
                    }
                }
                return instance;
            }
        }

        public void Delete(string ID)
		{
            Dictionary<string, object> param = new Dictionary<string, object>() { { "ID", ID } };
            this.dao.ExecuteNonQuery("DistributePlanDetail.delete", param);
		}

        public void submitOK(string mgID)
        {
            Dictionary<string, object> param = new Dictionary<string, object>() { { "ID", mgID } };
            this.dao.ExecuteNonQuery("DistributePlanDetail.submitOK", param);
        }
    }
}